package com.canyou.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.canyou.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author canyou
 * @since 2019-05-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_dept")
@ApiModel(value="Dept对象", description="部门")
public class Dept extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "上级部门id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "所属机构id")
    @TableField("org_id")
    private Long orgId;

    @ApiModelProperty("部门名")
    @TableField("dept_name")
    private String deptName;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

}
